import React, { useState, useEffect } from "react";
import { Avatar, Button, Space, Typography, message } from "antd";
import { LikeOutlined, MessageOutlined, UserOutlined } from "@ant-design/icons";

const { Text } = Typography;

const PostFooter = () => {
  const [likeCount, setLikeCount] = useState(0);
  const [loading, setLoading] = useState(true);
  const fetchPostDetail = async () => {
    try {
      const res = await service.get(`/forum2/posts/${id}`);
      if (res) {
        setPost(res);
        setLiked(res.isLiked || false);
        setLikeCount(res.likeCount || 0);
      } else {
        message.error("获取帖子详情失败");
      }
    } catch (error) {
      console.error("获取帖子失败", error);
      message.error("获取帖子详情出错");
    } finally {
      setLoading(false);
    }
  };
  useEffect(() => {
    fetchPostDetail();
  }, []);
  return (
    <div>1</div>
  );
};

export default PostFooter;
